﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 存放用户数据
{
    class User
    {
        
        public string account;
        public string username;
        public string password;
        public int time;
        public string Account
        {
            get
            {

                return this.account;
            }
            set
            {
                this.account = value;
            }

        }

        public string UserName
        {
            get
            {
                return this.username;
            }
            set
            {
                this.username = value;

            }
        }

        public string Password
        {
            get
            {
                return this.password;
            }
            set
            {
                if (value == "123456")
                {
                    Console.WriteLine("不行");
                    Console.WriteLine("重新输入");

                }
                else
                {
                    this.password = value;
                }
            }
        }

        public void Judge(string account, string password)
        {

        }

        public void PutMsg()
        {
            for (int i = 0; i < this.user.Length; i++)
            {
                for (int j = 0; j < this.user[i].Length; j++)
                {

                }
            }
                Console.WriteLine("恭喜注册成功{0}", this.username);
        }
    }
}
